package com.elastic.chain;

import org.elasticsearch.index.query.BoolQueryBuilder;

/**
 * @ClassName Leader
 * @Author xiezhuocai
 * @Description 用来处理字段的查询策略
 * @Date 2021/12/22 11:29
 */
public abstract class Leader {

    /**
     * @Description 保存下一个调用对象
     */
    private Leader next;

    public Leader getNext() {
        return next;
    }

    public void setNext(Leader next) {
        this.next = next;
    }

    //处理的方法
    public abstract boolean handleRequest(BoolQueryBuilder boolQuery, String key, Object value);
}
